package com.bw.lyc.util;

import android.content.Context;
import android.graphics.Color;

import androidx.annotation.Nullable;

import com.yanyusong.y_divideritemdecoration.Y_Divider;
import com.yanyusong.y_divideritemdecoration.Y_DividerBuilder;
import com.yanyusong.y_divideritemdecoration.Y_DividerItemDecoration;

public class UnLine extends Y_DividerItemDecoration {
    private Y_Divider y_divider;

    public UnLine(Context context) {
        super(context);
    }

    @Nullable
    @Override
    public Y_Divider getDivider(int itemPosition) {
        if (itemPosition != 0){
            y_divider = new Y_DividerBuilder().setBottomSideLine(true, Color.GRAY,1f,0,0).create();
        }
        return y_divider;
    }
}
